home *** CD-ROM | disk | FTP | other *** search
/ funcom 2000 Presskit / 000721_1312 (fun.com).iso / funcom.dir / 00030_Script_30 < prev    next >
Text File  |  2000-07-20  |  626b  |  28 lines

  1.  
  2.  
  3. -- Display Translated Size behavior
  4.  
  5. -----------------------------------------------------------
  6. -- Displays the width of the ball sprite.
  7. --
  8. -- You attach this behavior to a text sprite.
  9. --
  10. -- David Benman 11/97
  11. -----------------------------------------------------------
  12.  
  13. on beginSprite me
  14.   displaySize me 
  15. end
  16.  
  17.  
  18. on sliderMove me
  19.   displaySize me
  20. end
  21.  
  22. on displaySize me
  23.   set currentSprite to the spriteNum of me
  24.   set currentMember to the member of sprite currentSprite
  25.   set ballSprite to currentSprite - 2
  26.   set the text of member currentMember to string(the width of sprite ballSprite)
  27. end
  28.